﻿<core:View x:Class="Coolzon.UI.ViewerApp.Views.SelectSolutionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:core="clr-namespace:Coolzon.UI.Core.Views;assembly=Coolzon.UI.Core"
             mc:Ignorable="d" 
             Background="#1D1D1D">
    <core:View.Resources>
        <Style TargetType="Button" x:Key="btn-solution">
            <Setter Property="FontSize" Value="24"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid Margin="5">
                            <Image Grid.Row="0" Source="{Binding Path=Image}" Stretch="UniformToFill"/>
                            <Grid VerticalAlignment="Bottom">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Rectangle Grid.Column="0">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0,0.5" MappingMode="RelativeToBoundingBox" StartPoint="1,0.5">
                                            <GradientStop Color="#FF03B9B2" Offset="0"/>
                                            <GradientStop Color="#4CCBFFFD" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
                                <Rectangle Grid.Column="1">
                                    <Rectangle.Fill>
                                        <LinearGradientBrush EndPoint="0,0.5" MappingMode="RelativeToBoundingBox" StartPoint="1,0.5">
                                            <GradientStop Color="#4CCBFFFD" Offset="0"/>
                                            <GradientStop Color="#FF03B9B2" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Rectangle.Fill>
                                </Rectangle>
                                <ContentPresenter Content="{TemplateBinding Content}" Grid.Row="1" HorizontalAlignment="Center" Grid.Column="0" Grid.ColumnSpan="2"/>
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </core:View.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Background="Transparent" Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Column="0" Orientation="Horizontal">
                <TextBlock Text="酷展可视化平台" FontSize="32" FontFamily="黑体" Foreground="White" Margin="20, 10, 10, 10"/>
            </StackPanel>
            <StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
                <TextBlock x:Name="tbAccountName" Foreground="White" FontFamily="黑体" FontSize="24" Text="nimei"/>
                <TextBlock x:Name="tbFullscreen" Foreground="White" FontFamily="黑体" FontSize="24" Text="全屏" PreviewMouseLeftButtonDown="tbFullscreen_PreviewMouseLeftButtonDown" />
                <Border Cursor="Hand" x:Name="Logout" PreviewMouseDown="Logout_PreviewMouseDown">
                    <TextBlock Text="注销" Foreground="White" FontFamily="黑体" FontSize="24" />
                </Border>
                <Button Name="_ctlBtnBack" Visibility="Hidden" Click="_ctlBtnBack_Click_1">
                    <TextBlock Text="返回" Foreground="White" FontFamily="黑体" FontSize="24" />
                </Button>
                
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1">
            <ScrollViewer x:Name="scrollView" CanContentScroll="True" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" PanningMode="Both">
                <WrapPanel x:Name="_ctlWrapPanel" HorizontalAlignment="Center" Margin="0,10,0,20">
                </WrapPanel>
            </ScrollViewer>
            <StackPanel Name="_ctlPanelRetry" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden">
                <TextBlock Text="获取方案失败!" Foreground="White" FontSize="24" Margin="10"/>
                <Button Name="_ctlBtnRetry" Content="重试" Height="24" Width="75" Click="OnBtnRetryClick"/>
            </StackPanel>
        </Grid>
    </Grid>
</core:View>
